﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MoControls.Markup
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)]
    public class MarkupElementAttribute
        : Attribute
    {
        #region Fields

        public readonly String XmlTagName;
        public readonly Type ElementType;

        #endregion

        #region .ctor

        public MarkupElementAttribute(String XmlTagName, Type ElementType)
        {
            this.XmlTagName = XmlTagName;
            this.ElementType = ElementType;

            MarkupDeclaredObjects.DeclaredObjects.Add(XmlTagName, ElementType);
        }

        #endregion

    }
}
